package cjy;
public class animal {
	public String name;
	protected int age;
	private double weight;
	String color;
	public void setweight (double weight) {
		this.weight=weight;
	}
	public double getweight() {
		return this.weight;
	}
	public void talk() {
		System.out.println(name+""+age+""+getweight()+""+color);
	}
	

}
